package com.alipay.sofa.demo.db.common.service;

import com.alipay.sofa.demo.db.common.entity.StudentInfo;
import com.alipay.sofa.demo.db.common.exception.OperateDataException;

import java.util.List;

/**
 * 插入学生数据service
 * @Author Zhang Da
 * @Date 2020/2/13 15:09
 * @Version 1.0
 */
public interface StudentInsertService {

    /**
     * 插入一条学生信息
     * @param studentInfo
     * @return
     * @throws OperateDataException
     */
    int insertStudents(StudentInfo studentInfo) throws OperateDataException;

    /**
     * 批量插入学生信息
     * @param studentInfoList
     * @return
     * @throws OperateDataException
     */
    int insertStudents(List<StudentInfo> studentInfoList) throws OperateDataException;
}
